//
//  CallServiceViewController.m
//  Fangmm
//
//  Created by 阮琦 on 16/3/3.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import "CallServiceViewController.h"
#import "Constants.h"
#import "Utility.h"
#import <MobClick.h>
@interface CallServiceViewController ()

@end

@implementation CallServiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated {
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    self.navigationController.navigationBarHidden = true;
    [MobClick beginLogPageView:@"联系客服页"];
}

- (void)viewWillDisappear:(BOOL)animated {
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
    self.navigationController.navigationBarHidden = false;
    [MobClick beginLogPageView:@"联系客服页"];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (IBAction)clickToDismiss:(UIButton *)sender {
    [self dismissViewControllerAnimated:true completion:^{
        
    }];
}

- (IBAction)clickToCallService:(UIButton *)sender
{
    NSString *allString = [NSString stringWithFormat:@"tel:%@",kServicePhone];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:allString]];
}

@end
